#ifndef APGAR_SCORE_FORMULA_H
#define APGAR_SCORE_FORMULA_H
#include "abstractformula.h"


class APGAR_Score_Formula : public AbstractFormula
{
public:
    APGAR_Score_Formula()
        :AbstractFormula(tr("APGAR Score")){}

    /*!
    *  \brief Apgar Score
    *  Return Abgar score
    *  \param heartRate between 0 and 2
    *  \param breathRate between 0 and 2
    *  \param tonus between 0 and 2
    *  \param reactivity between 0 and 2
    *  \param coloration between 0 and 2
    */

    int result(short int heartRate,
               short int breathRate,
               short int tonus,
               short int reactivity,
               short int coloration)
    {
        return heartRate + breathRate + tonus + reactivity + coloration;
    }
};

#endif // APGAR_SCORE_FORMULA_H
